<script setup lang="ts">
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
import { isNilOrEmpty } from "qx-util";
import { AuthGuard } from "@/guard";

onLaunch(async () => {
  if (isNilOrEmpty(ibiz.appData)) {
    await AuthGuard();
  }
});

onShow(() => {
  console.log("App Show");
});

onHide(() => {
  console.log("App Hide");
});
</script>
<style lang="scss">
// uniapp默认样式
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

page {
  margin: 0;
  padding: 0;
  height: 100%;
}

uni-page-body {
  height: 100%;
  uni-button {
    display: inline-block;
  }
  uni-button[size="mini"] {
    line-height: 2;
  }
}
</style>
